package org.example;

public class Test {
    public static void main(String[] args) {
        Book book =new Book("老人与海","海明威");
        Novel novel=new Novel("The Great Adventure", "Jane Smith", "Adventure");
        TextBook textBook=new TextBook("Mathematics for Beginners", "John Doe", "Mathematics", 1);
        System.out.println(book);
        System.out.println(novel);
        System.out.println(textBook);
    }

}
